package org.jl.demo.authority.model.po;

import lombok.Data;
import jakarta.persistence.*;

/**
 * 菜单Po
 */
@Data
@Entity
@Table(name = "z_menu", indexes = {
        @Index(name = "idx_menu_code", columnList = "menu_code"),
        @Index(name = "idx_menu_name", columnList = "menu_name")
})
public class Menu {
    /**
     * 菜单ID
     */
    @Id
    @Column(name = "id", nullable = false, unique = true)
    private Integer id;
    /**
     * 菜单编码
     */
    @Column(name = "menu_code", nullable = false, length = 8)
    private String menuCode;
    /**
     * 菜单名称
     */
    @Column(name = "menu_name", nullable = false, length = 32)
    private String menuName;
}